package com.glx.learn_spring.learn_spring_07_di_autoware;

import com.glx.learn_spring.learn_spring_07_di_autoware.service.IBookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author haoli
 * @create 2022/11/30 18:53
 */
public class AppForDIAutoWare {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        IBookService bookService = ctx.getBean("bookService", IBookService.class);
        bookService.save();
    }
}
